fixed error with password confirmation
added if to new
did exercise 6