Remove guard operator to add consistency

In the login method 'callback' is checked for truthyness with an if statement, in the createAccount method 'callback' is checked for truthyness using a guard operator. I replaced the guard operator in createAccount with an if statement to add consistency.