added forgot page and check_login with db