Added action and method to loging and register forms