added login layer in front of application