changed api functions to wordpress_api_functions for modularity, login is working well