Added error statement and css styling to password box