Added login front-end and login API