Add getLoginUrl method
Add session_start and make sure we report all errors