Small fixes for logging in and getting app ids