Incorporated layered architecture in login page