working signup and main is cleaned