fix bug and add case sensitive in password