Added reset function, correcting the login bug