Add a simple Register function in subapp login

this function is to be improved later