Fixed login and reset functions now work