Login issues solved. IE compatibility with $location.