modified signIn and createAccount api - use options dict