Resolve issue with having to manually refresh the page after successful login