Enable debugging
Added login and user validation