merging login and register views in one view