Split profile authentication methods in separate file