main activity+registration activity