new logiin errors & refactoring form block