Improved user password validation
Fixed functional session test