Login system implementation without ajax