Login with Hibernate

- Solved problem using hibernate in index page. (but it is needed to
conclude the login validation)