added nav functions in application.js for login, register and remindPass pages