php login logout and registration system with sample code