added rails.js and other html fields
redirect to login in case a users not logged in