formating fix and password complexity check for profile