functions for changed login/signup api