cleaned code on loginphp