Added login and registration basic functionality