Added a second param to createUser if true it will set autologin to true