bug fix in login when scrypt fails to prevent error