Login and registration works dynamically