Removed smarty templates and added registration login