altered login and create apis to make it the same as web process