created basic user login/register behavior