Fix authorize method in application controller for already logged in users