login and register use pages now check database and validify the user