Altered LoginLayout to accept the State Pattern Interface(for Task 12)