Fix authentication of user before any pages and fix gem for bcrypt