Added login problem and register calls