Bug fixes for standard users getting logged out.