added user role during registration and space/tab fix