Added forms authentication logic