implemented gem for auth, HomeController created and some refactories