added logging in and resetting password