Login page js funtionality sperated from app.js