Fixed returned type in authenticate
Login and registration pages are now functional with exceptions for length and current users