Registration controller and model fixed (added example redirects)

database connection fixed
autoload database

Login page( will be block) added