User password check updated

Fixed bug to permit some unauthorised users to log in