complete login signup database connection, link pages

I have apply the database classes into login and signup page, and link
them together with the main page, as well as change password field in
database to string type, and remove the login success page.