Android Register functionality working