generating error 500 in wecome controller