ENH: now the user is checked before being created allowing for profile persistence, also nicer code