fixed routing error adding 'as' for login and logout