Added login functionallity with spring security