why invalid syntax?
input('please press the enter button to register into our website! ') username= input('enter a username to register: ') password= int(input('please enter a password to register :')) input('You will be required to enter your login details to login now. Please presss the enter button now ') previous_username= input('enter your username to login :') previous_password= int(input('enter your password to login :') if username==previous_username and password==previous_password: print('Login sucessfull!') print('Welcome {}!'.format(username)) if username==previous_username and password!=previous_password: print('Failed to login') print('Wrong password, try again!') if username!=previous_username and password==previous_password: print('Failed to login') print('Wrong username, try again!') if username!=previous_username and password!=previous_password: print('Invalid login details') print('Session ended') else: print('TIMEOUT!')