Adds webapp API functionality for logging in