added page reload after authentication