Revert "Bypass APIFunctions.Login (onClick)"

This reverts commit 4ddaf9312897866e0dd44f1344713bccd4225176.